
//应急值班的对话框
var oneyjtxDlg = null;

function oneyjtxDlgInit(){
	if(oneyjtxDlg==null){//如果对话框不存在，那么创建
		oneyjtxDlgCreate();
		oneyjtxDlg.zindex();
	}else if(itemExistArray(oneyjtxDlg,minDlgArray)){//如果对话框存在，且对话框处在最小化的状态
		//调用minbar.js之中的还原方法
		resizeMinDlgFuncBySecondaryfuncDiv(oneyjtxDlg);
	}
	oneyjtxDlg.zindex();
}	

//创建对话框
function oneyjtxDlgCreate(){
	oneyjtxDlg =  $.dialog({
		title: '应急通信',
		content: 'url:jsp/yjtx/yjtx.jsp',
		dlgDivId: "oneyjtxDlgId",
		resize: false,
		max: false,
		left:(document.documentElement.clientWidth-830)/2+"px",
		top:'200px',
		width:'830px',
		height:'400px',
		min:oneyjtxDlgMinFunction,
		close:oneyjtxDlgCloseFunction,
		
	});
}

//关闭的方法
function oneyjtxDlgCloseFunction(){
	oneyjtxDlg = null;
}

//最小化的方法
function oneyjtxDlgMinFunction(){
	minDlgByAnimate(oneyjtxDlg);
}
